package String;


import java.util.Arrays;

/**
 * @Author Justin Parker
 * @Date 2024/7/12 0012 11:45
 * @Version 1.0
 *
 *
 */
public class SpiltDemo {
    public static void main(String[] args) {
        String line = "asbd234jjdsak2344nnfa";
        //将字符串按照数字部分拆分，
        String[] arr  = line.split("[0-9]+");
        System.out.println(arr.length);
        //将数组格式化为一个字符串然后输出
        System.out.println(Arrays.toString(arr));

        line ="123.456.789";
        arr = line.split("\\.");
        System.out.println(Arrays.toString(arr));



    }
}
